/**
 *查看消息
 *
*/
import {
  http
} from '@/common/service.js'

//未读消息用户
const  unreadUser= (header,params) => {
	return http.get('message/xySysNews/getUerHaveNotRead', {
    header,
	params
  })
}
//已读消息用户
const  readUser= (header,params) => {
	return http.get('message/xySysNews/getUerHaveRead', {
    header,
	params
  })
}
//请求消息回复列表
const  replyMessage= (header,params) => {
	return http.get('message/xySysNews/queryXySysReplyMessageByMainId', {
    header,
	params
  })
}
//回复消息

const  replyNews= (header,datas) => {
	return http.request({
		method: 'POST', // 请求方法必须大写 [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE]
		url: 'message/xySysNews/replyNews',
		header,
		data: {
			newId: datas.newId,
			userId: datas.userId,
			replyContent:datas.replyContent
		},
	})
}

export default {
	unreadUser,
	readUser,
	replyMessage,
	replyNews
}
